﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GSLMS.Entity;

namespace GSLMS.Entity.DTO
{
    public class CurrentUserDTO
    {
        public TB_SYS_EMP CurrentUserInfo { get; set; }
        public List<VRolePurview> Roles { get; set; }
      
        /// <summary>
        /// 子用户
        /// </summary>
        public List<int> SubEmp{ get; set; }
        private string _UserName = string.Empty;
        private string _EmpName = string.Empty;
        public string UserName
        {
            get
            {
                if (CurrentUserInfo != null) _UserName =CurrentUserInfo.USERNAME;
                return _UserName;
            }
            set { _UserName = value; }
        }

        public string EmpName
        {
            get
            {
                if (CurrentUserInfo != null) _EmpName = CurrentUserInfo.EMPNAME;
                return _EmpName;
            }
            set { _EmpName = value; }
        }



    }
}
